#ifndef TAG_ADDR_SETTING_H
#define TAG_ADDR_SETTING_H

#include <QWidget>
#include <QLineEdit>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>
#include <QFrame>

class TagAddrSetWidget: public QWidget
{
    Q_OBJECT

public:
    TagAddrSetWidget(QWidget* parent=nullptr);
    ~TagAddrSetWidget();

    static bool tag_server_connected;

public slots:
    void connect_tag_server_check();

private:
    QGridLayout* m_layout = nullptr;
    QLabel* m_tag_server = nullptr;
    QLabel* m_tag_server_ip_label = nullptr;
    QLineEdit* m_tag_server_ip_line = nullptr;

    QLabel* m_tag_server_ip_port = nullptr;
    QLineEdit* m_tag_server_port = nullptr;

    QPushButton* m_connect = nullptr;

    QLabel* m_split_label = nullptr;

    QPushButton* m_all_tag_init = nullptr;

    QLabel* m_recv_addr_label = nullptr;
    QLineEdit* m_recv_addr_line = nullptr;

    QLabel* m_set_addr_label = nullptr;
    QLineEdit* m_setted_addr = nullptr;

    QPushButton* m_cmd_send = nullptr;

}; // class TagAddrSetWidget

#endif // TAG_ADDR_SETTING_H
